Skip to main content

Import

Usage

Return Type: SequenceIndexer

Returns a SequenceIndexer instance configured for the specified chain ID.

Parameters

chainId

ChainId The chain ID to create an indexer client for. Must be a supported chain ID from @0xsequence/network. For applications that need to work with multiple chains simultaneously, consider using useIndexerClients. It accepts an array of chain IDs and returns a Map of indexer clients, enabling parallel operations across different networks.

Usage with useIndexerClients